package com.biz.ribbon.rule;

import com.netflix.loadbalancer.*;
import org.springframework.context.annotation.*;

/**
 * @Description
 *    负载均衡策略
 *    使用时 引入当前模块
 *    启动类上添加注解  name服务名称  configuration 负载均衡规则
 *    、@RibbonClient(name = "ape-cloud-sku", configuration = MyRule.class)
 * @Author liuxi
 * @Date 2024/5/19
 **/
@Configuration
public class MyRuleConfig {

    @Bean
    public IRule myRule() {
        return new MyRule();
    }

}
